package cn.yougou.vo;

import java.io.Serializable;

/**
 * @author: DELL
 * @date: 2021/1/4 9:10
 * @description:
 */
public class YgResCommodityVo implements Serializable {

    /**
     * 商品id
     */
    private Integer id;
    /**
     * 商品名称
     * */
    private String commodityname;

    /**
     * 商品规格
     * */
    private Integer productid;
    /**
     *商品数量
     * */
    private Integer commodityCount;
    /**
     * 商品单价
     * */
    private Double commodityDouble;

    /**
    * 实际优惠金额 这个值前端不用传
    * */
    private double DerateResultMoney;
    /**
     * 商品打折
     * */
    private Double discount;
    /**
     * 商品原价
     * */
    private Double commoditymoney;
    /**
     *规格描述
     * */
    private String specifications;

    /**
     * 订单编号
     */
    private String ordersn;

    public YgResCommodityVo() {
    }
    public YgResCommodityVo(Integer id,String commodityname, Integer productid,Integer commodityCount, Double commodityDouble,String specifications) {
        this.id=id;
        this.commodityname=commodityname;
        this.productid=productid;
        this.commodityCount=commodityCount;
        this.commodityDouble=commodityDouble;
        this.specifications=specifications;
    }

    public YgResCommodityVo(Integer id, Integer productid,String name, Integer commodityCount, Double commodityDouble, String specifications) {
        this.id = id;
        this.commodityname =name;
        this.productid = productid;
        this.commodityCount = commodityCount;
        this.commodityDouble = commodityDouble;
        this.specifications=specifications;//商品规格
    }

    public YgResCommodityVo(String ordersn,Integer id, String name, Integer productid, Integer commodityCount, Double commodityDouble, double derateResultMoney,Double discount,Double commoditymoney) {
        this.id = id;//商品id
        this.commodityname = name;//商品名称
        this.productid = productid;//商品规格
        this.commodityCount = commodityCount;//商品数量
        this.commodityDouble = commodityDouble;//商品单价
        this.DerateResultMoney = derateResultMoney;//实际优惠金额 这个值前端不用传
        this.discount=discount;//商品打折
        this.commoditymoney=commoditymoney;//商品原价
        this.ordersn=ordersn;
    }

    public YgResCommodityVo(Integer id, String commodityname, Integer productid, Integer commodityCount, Double commodityDouble, double derateResultMoney, Double discount, Double commoditymoney, String specifications) {
        this.id = id;
        this.commodityname = commodityname;
        this.productid = productid;
        this.commodityCount = commodityCount;
        this.commodityDouble = commodityDouble;
        DerateResultMoney = derateResultMoney;
        this.discount = discount;
        this.commoditymoney = commoditymoney;
        this.specifications = specifications;
    }

    public YgResCommodityVo(Integer id, String commodityname, Integer productid, Integer commodityCount, Double commodityDouble, double derateResultMoney, Double discount, Double commoditymoney, String specifications, String ordersn) {
        this.id = id;
        this.commodityname = commodityname;
        this.productid = productid;
        this.commodityCount = commodityCount;
        this.commodityDouble = commodityDouble;
        DerateResultMoney = derateResultMoney;
        this.discount = discount;
        this.commoditymoney = commoditymoney;
        this.specifications = specifications;
        this.ordersn = ordersn;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }



    public Integer getCommodityCount() {
        return commodityCount;
    }

    public void setCommodityCount(Integer commodityCount) {
        this.commodityCount = commodityCount;
    }

    public Double getCommodityDouble() {
        return commodityDouble;
    }

    public void setCommodityDouble(Double commodityDouble) {
        this.commodityDouble = commodityDouble;
    }

    public String getCommodityname() {
        return commodityname;
    }

    public void setCommodityname(String commodityname) {
        this.commodityname = commodityname;
    }

    public double getDerateResultMoney() {
        return DerateResultMoney;
    }

    public void setDerateResultMoney(double derateResultMoney) {
        DerateResultMoney = derateResultMoney;
    }

    public Double getDiscount() {
        return discount;
    }

    public void setDiscount(Double discount) {
        this.discount = discount;
    }

    public Double getCommoditymoney() {
        return commoditymoney;
    }

    public void setCommoditymoney(Double commoditymoney) {
        this.commoditymoney = commoditymoney;
    }

    public Integer getProductid() {
        return productid;
    }

    public void setProductid(Integer productid) {
        this.productid = productid;
    }

    public String getSpecifications() {
        return specifications;
    }

    public void setSpecifications(String specifications) {
        this.specifications = specifications;
    }

    public String getOrdersn() {
        return ordersn;
    }

    public void setOrdersn(String ordersn) {
        this.ordersn = ordersn;
    }

    @Override
    public String toString() {
        return "YgResCommodityVo{" +
                "id=" + id +
                ", commodityname='" + commodityname + '\'' +
                ", productid=" + productid +
                ", commodityCount=" + commodityCount +
                ", commodityDouble=" + commodityDouble +
                ", DerateResultMoney=" + DerateResultMoney +
                ", discount=" + discount +
                ", commoditymoney=" + commoditymoney +
                ", specifications='" + specifications + '\'' +
                '}';
    }
}
